package com.zheng.pay.dao.model;

import java.io.Serializable;
import java.util.Date;

public class PayIapReceipt implements Serializable {
    /**
     * 支付订单号
     *
     * @mbg.generated
     */
    private String payorderid;

    /**
     * 商户ID
     *
     * @mbg.generated
     */
    private String mchid;

    /**
     * IAP业务号
     *
     * @mbg.generated
     */
    private String transactionid;

    /**
     * 处理状态:0-未处理,1-处理成功,-1-处理失败
     *
     * @mbg.generated
     */
    private Byte status;

    /**
     * 处理次数
     *
     * @mbg.generated
     */
    private Byte handlecount;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createtime;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Date updatetime;

    /**
     * 渠道ID
     *
     * @mbg.generated
     */
    private String receiptdata;

    private static final long serialVersionUID = 1L;

    public String getPayorderid() {
        return payorderid;
    }

    public void setPayorderid(String payorderid) {
        this.payorderid = payorderid;
    }

    public String getMchid() {
        return mchid;
    }

    public void setMchid(String mchid) {
        this.mchid = mchid;
    }

    public String getTransactionid() {
        return transactionid;
    }

    public void setTransactionid(String transactionid) {
        this.transactionid = transactionid;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Byte getHandlecount() {
        return handlecount;
    }

    public void setHandlecount(Byte handlecount) {
        this.handlecount = handlecount;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getReceiptdata() {
        return receiptdata;
    }

    public void setReceiptdata(String receiptdata) {
        this.receiptdata = receiptdata;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", payorderid=").append(payorderid);
        sb.append(", mchid=").append(mchid);
        sb.append(", transactionid=").append(transactionid);
        sb.append(", status=").append(status);
        sb.append(", handlecount=").append(handlecount);
        sb.append(", createtime=").append(createtime);
        sb.append(", updatetime=").append(updatetime);
        sb.append(", receiptdata=").append(receiptdata);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PayIapReceipt other = (PayIapReceipt) that;
        return (this.getPayorderid() == null ? other.getPayorderid() == null : this.getPayorderid().equals(other.getPayorderid()))
            && (this.getMchid() == null ? other.getMchid() == null : this.getMchid().equals(other.getMchid()))
            && (this.getTransactionid() == null ? other.getTransactionid() == null : this.getTransactionid().equals(other.getTransactionid()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getHandlecount() == null ? other.getHandlecount() == null : this.getHandlecount().equals(other.getHandlecount()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getUpdatetime() == null ? other.getUpdatetime() == null : this.getUpdatetime().equals(other.getUpdatetime()))
            && (this.getReceiptdata() == null ? other.getReceiptdata() == null : this.getReceiptdata().equals(other.getReceiptdata()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPayorderid() == null) ? 0 : getPayorderid().hashCode());
        result = prime * result + ((getMchid() == null) ? 0 : getMchid().hashCode());
        result = prime * result + ((getTransactionid() == null) ? 0 : getTransactionid().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getHandlecount() == null) ? 0 : getHandlecount().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getUpdatetime() == null) ? 0 : getUpdatetime().hashCode());
        result = prime * result + ((getReceiptdata() == null) ? 0 : getReceiptdata().hashCode());
        return result;
    }
}